package com.itheima.mapper;

import com.itheima.domain.User;
import com.itheima.domain.UserSelective;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByEmail(String email);

    List<User> selectUsers();
    int selectUserNum();

    List<User> selectUserSelective(UserSelective selective);
    int selectUserNumSelective(UserSelective selective);
}